﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace TutorCenter.WebApplication.Models
{
    public class ParentAdd
    {
        [Display(Name = "Tên phụ huynh")]
        [Required(ErrorMessage = "Tên phụ huynh phải được điền")]
        public string Name { get; set; }
        public string Address { get; set; }
        public string Phone { get; set; }
        public string Email { get; set; }
        [Display(Name = "Lớp")]
        public int GradeId { get; set; }
        public IEnumerable<SelectListItem> ListGrade { get; set; }
        [Display(Name = "Môn học")]
        public int SubjectId { get; set; }
        public IEnumerable<SelectListItem> ListSubject { get; set; }
        public int NumberStudent { get; set; }
        public string Rank { get; set; }
        public string Purpose { get; set; }
        public int Session { get; set; }
        public List<SelectListItem> NumberSession { get; set; }
        public string Time { get; set; }
        public string Requirement { get; set; }
        public int Salary { get; set; }
    }

    public class ParentView
    {
        public int Id { get; set; }
        [Display(Name = "Tên phụ huynh")]
        [Required(ErrorMessage = "Tên phụ huynh phải được điền")]
        public string Name { get; set; }
        public string Address { get; set; }
        public string Phone { get; set; }
        public string Email { get; set; }
        [Display(Name = "Lớp")]
        public string GradeName { get; set; }
        public string SubjectName { get; set; }
        public int NumberStudent { get; set; }
        public string Rank { get; set; }
        public string Purpose { get; set; }
        public int Session { get; set; }
        public int NumberSession { get; set; }
        public string Time { get; set; }
        public string Requirement { get; set; }
        public int Salary { get; set; }
    }
}